#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    char x = 0;
    scanf("%c", &x);
    printf("%c%c%c\n", x, x, x);
    printf("%c%c%c\n", x, x, x);
    printf("%c%c%c\n", x, x, x);
    return 0;
}
//bc7